// MatPropsDlg.cpp : implementation file
//

#include "stdafx.h"
#include "CGWork.h"
#include "MatPropsDlg.h"


// MatPropsDlg dialog

IMPLEMENT_DYNAMIC(MatPropsDlg, CDialog)

MatPropsDlg::MatPropsDlg(CWnd* pParent /*=NULL*/)
	: CDialog(MatPropsDlg::IDD, pParent)
	, ambient(0)
	, diffuse(0)
	, specular(0)
	, cosine(0)
{

}

MatPropsDlg::~MatPropsDlg()
{
}

void MatPropsDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_AMBIENT, ambient);
	DDV_MinMaxDouble(pDX, ambient, 0.01, 1.00);
	DDX_Text(pDX, IDC_DIFFUSE, diffuse);
	DDV_MinMaxDouble(pDX, diffuse, 0.01, 1.00);
	DDX_Text(pDX, IDC_SPECULAR, specular);
	DDV_MinMaxDouble(pDX, specular, 0.01, 1.00);
	DDX_Text(pDX, IDC_COSINE, cosine);
	DDV_MinMaxInt(pDX, cosine, 0, 127);
}


BEGIN_MESSAGE_MAP(MatPropsDlg, CDialog)
	
END_MESSAGE_MAP()


// MatPropsDlg message handlers

